#include<iostream>
#include<vector>
using namespace std;

vector<int>& retRef() {
  vector<int> ivec{1,2,3,4,5};
  return ivec;
}

int main() {
  vector<int>& iivec = retRef();
  cout << iivec[1] << endl; // This caused a Segment Fault.
  return 0;
}
